<?php include 'application/views/header.php' ?>
<?php include 'application/views/left.php' ?>

<!-- BOX NEWS -->
<div class="content-box user-edit">
    <div class="title">
        <div class="label">Thông tin của người dùng</div>
        <div class="end-title"></div>
    </div>
    <!-- content -->
    <div class="user-edit-content clr">
        <form id="frmEditUserDetail" accept="#" method="post">
        <table width="80%">
            <tr>
                <td>Họ tên</td>
                <td><input type="text" name="FullName" value="<?php echo $User['FullName']  ?>"/></td>
            </tr>
            <tr>
                <td>Địa chỉ</td>
                <td><input type="text" name="Address" value="<?php echo $User['Address']  ?>" /></td>
            </tr>
            <tr>
                <td>Điện thoại</td>
                <td><input type="text" value="<?php echo $User['Phone']  ?>" name="Phone"/></td>
            </tr>
            <tr>
                <td>Địa chỉ email</td>
                <td><input type="text" value="<?php echo $User['Email']  ?>" name="Email" id="Email" /></td>
            </tr>
        </table>
        <div class="button-set">
            <input type="submit" name="btnSave" value="Lưu thông tin"/>
            <input type="reset" name="btnReset" value="Hủy thông tin thay đổi"/>
        </div>
        </form>
    </div>
</div>

<?php include 'application/views/right.php' ?>
<?php include 'application/views/footer.php' ?>

<script>
$('#frmEditUserDetail').validate({
    rules: {
        FullName : 'required',
        Address : 'required',
        Phone : {
            number : true,
            required: true
        },
        Email: {
            required : true,
            email : true
        }
    },
    messages: {
        FullName : '',
        Address : '',
        Phone : '',
        Email : '' 
    }
})
</script>